Optimal. Leaf size=240 \[ \frac {(a c+b d) \left (8 a b c d+a^2 \left (c^2-3 d^2\right )-b^2 \left (3 c^2-d^2\right )\right ) x}{\left (c^2+d^2\right )^3}-\frac {(b c-a d) \left (8 a b c d-b^2 \left (c^2-3 d^2\right )+a^2 \left (3 c^2-d^2\right )\right ) \log (c \cos (e+f x)+d \sin (e+f x))}{\left (c^2+d^2\right )^3 f}-\frac {(b c-a d)^2 (a+b \tan (e+f x))}{2 d \left (c^2+d^2\right ) f (c+d \tan (e+f x))^2}-\frac {(b c-a d)^2 \left (4 a c d+b \left (c^2+5 d^2\right )\right )}{2 d^2 \left (c^2+d^2\right )^2 f (c+d \tan (e+f x))} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.36, antiderivative size = 240, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.160, Rules used = {3646, 3709,
3612, 3611} \begin {gather*} -\frac {\left (a^2 \left (3 c^2-d^2\right )+8 a b c d-b^2 \left (c^2-3 d^2\right )\right ) (b c-a d) \log (c \cos (e+f x)+d \sin (e+f x))}{f \left (c^2+d^2\right )^3}+\frac {x (a c+b d) \left (a^2 \left (c^2-3 d^2\right )+8 a b c d-b^2 \left (3 c^2-d^2\right )\right )}{\left (c^2+d^2\right )^3}-\frac {\left (4 a c d+b \left (c^2+5 d^2\right )\right ) (b c-a d)^2}{2 d^2 f \left (c^2+d^2\right )^2 (c+d \tan (e+f x))}-\frac {(b c-a d)^2 (a+b \tan (e+f x))}{2 d f \left (c^2+d^2\right ) (c+d \tan (e+f x))^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3611
Rule 3612
Rule 3646
Rule 3709
Rubi steps
\begin {align*} \int \frac {(a+b \tan (e+f x))^3}{(c+d \tan (e+f x))^3} \, dx &=-\frac {(b c-a d)^2 (a+b \tan (e+f x))}{2 d \left (c^2+d^2\right ) f (c+d \tan (e+f x))^2}+\frac {\int \frac {b (b c-2 a d)^2+a^2 d (2 a c+b d)+2 d \left (3 a^2 b c-b^3 c-a^3 d+3 a b^2 d\right ) \tan (e+f x)+b \left (a d (2 b c-a d)+b^2 \left (c^2+2 d^2\right )\right ) \tan ^2(e+f x)}{(c+d \tan (e+f x))^2} \, dx}{2 d \left (c^2+d^2\right )}\\ &=-\frac {(b c-a d)^2 (a+b \tan (e+f x))}{2 d \left (c^2+d^2\right ) f (c+d \tan (e+f x))^2}-\frac {(b c-a d)^2 \left (4 a c d+b \left (c^2+5 d^2\right )\right )}{2 d^2 \left (c^2+d^2\right )^2 f (c+d \tan (e+f x))}+\frac {\int \frac {2 d \left (6 a^2 b c d-2 b^3 c d+a^3 \left (c^2-d^2\right )-3 a b^2 \left (c^2-d^2\right )\right )-2 d \left (2 a^3 c d-6 a b^2 c d-3 a^2 b \left (c^2-d^2\right )+b^3 \left (c^2-d^2\right )\right ) \tan (e+f x)}{c+d \tan (e+f x)} \, dx}{2 d \left (c^2+d^2\right )^2}\\ &=\frac {(a c+b d) \left (8 a b c d+a^2 \left (c^2-3 d^2\right )-b^2 \left (3 c^2-d^2\right )\right ) x}{\left (c^2+d^2\right )^3}-\frac {(b c-a d)^2 (a+b \tan (e+f x))}{2 d \left (c^2+d^2\right ) f (c+d \tan (e+f x))^2}-\frac {(b c-a d)^2 \left (4 a c d+b \left (c^2+5 d^2\right )\right )}{2 d^2 \left (c^2+d^2\right )^2 f (c+d \tan (e+f x))}+\frac {\left (2 d^2 \left (6 a^2 b c d-2 b^3 c d+a^3 \left (c^2-d^2\right )-3 a b^2 \left (c^2-d^2\right )\right )+2 c d \left (2 a^3 c d-6 a b^2 c d-3 a^2 b \left (c^2-d^2\right )+b^3 \left (c^2-d^2\right )\right )\right ) \int \frac {d-c \tan (e+f x)}{c+d \tan (e+f x)} \, dx}{2 d \left (c^2+d^2\right )^3}\\ &=\frac {(a c+b d) \left (8 a b c d+a^2 \left (c^2-3 d^2\right )-b^2 \left (3 c^2-d^2\right )\right ) x}{\left (c^2+d^2\right )^3}-\frac {(b c-a d) \left (3 a^2 c^2-b^2 c^2+8 a b c d-a^2 d^2+3 b^2 d^2\right ) \log (c \cos (e+f x)+d \sin (e+f x))}{\left (c^2+d^2\right )^3 f}-\frac {(b c-a d)^2 (a+b \tan (e+f x))}{2 d \left (c^2+d^2\right ) f (c+d \tan (e+f x))^2}-\frac {(b c-a d)^2 \left (4 a c d+b \left (c^2+5 d^2\right )\right )}{2 d^2 \left (c^2+d^2\right )^2 f (c+d \tan (e+f x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 5.74, size = 327, normalized size = 1.36 \begin {gather*} \frac {-\frac {b^2 (b c+a d)}{(c+d \tan (e+f x))^2}-\frac {2 b^2 d (a+b \tan (e+f x))}{(c+d \tan (e+f x))^2}+2 b \left (3 a^2-b^2\right ) d \left (-\frac {i \log (i-\tan (e+f x))}{2 (c+i d)^2}+\frac {i \log (i+\tan (e+f x))}{2 (c-i d)^2}+\frac {d \left (2 c \log (c+d \tan (e+f x))-\frac {c^2+d^2}{c+d \tan (e+f x)}\right )}{\left (c^2+d^2\right )^2}\right )+d \left (-3 a^2 b c+b^3 c+a^3 d-3 a b^2 d\right ) \left (\frac {\log (i-\tan (e+f x))}{(-i c+d)^3}+\frac {\log (i+\tan (e+f x))}{(i c+d)^3}+\frac {d \left (\left (6 c^2-2 d^2\right ) \log (c+d \tan (e+f x))-\frac {\left (c^2+d^2\right ) \left (5 c^2+d^2+4 c d \tan (e+f x)\right )}{(c+d \tan (e+f x))^2}\right )}{\left (c^2+d^2\right )^3}\right )}{2 d^2 f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.30, size = 421, normalized size = 1.75
method | result | size |
derivativedivides | \(\frac {\frac {\left (3 a^{3} c^{2} d -a^{3} d^{3}-3 a^{2} b \,c^{3}+9 a^{2} b c \,d^{2}-9 a \,b^{2} c^{2} d +3 a \,b^{2} d^{3}+b^{3} c^{3}-3 b^{3} c \,d^{2}\right ) \ln \left (c +d \tan \left (f x +e \right )\right )}{\left (c^{2}+d^{2}\right )^{3}}-\frac {a^{3} d^{3}-3 a^{2} b c \,d^{2}+3 a \,b^{2} c^{2} d -b^{3} c^{3}}{2 d^{2} \left (c^{2}+d^{2}\right ) \left (c +d \tan \left (f x +e \right )\right )^{2}}-\frac {2 a^{3} c \,d^{3}-3 a^{2} b \,c^{2} d^{2}+3 a^{2} b \,d^{4}-6 a \,b^{2} c \,d^{3}+b^{3} c^{4}+3 b^{3} c^{2} d^{2}}{\left (c^{2}+d^{2}\right )^{2} d^{2} \left (c +d \tan \left (f x +e \right )\right )}+\frac {\frac {\left (-3 a^{3} c^{2} d +a^{3} d^{3}+3 a^{2} b \,c^{3}-9 a^{2} b c \,d^{2}+9 a \,b^{2} c^{2} d -3 a \,b^{2} d^{3}-b^{3} c^{3}+3 b^{3} c \,d^{2}\right ) \ln \left (1+\tan ^{2}\left (f x +e \right )\right )}{2}+\left (a^{3} c^{3}-3 a^{3} c \,d^{2}+9 a^{2} b \,c^{2} d -3 a^{2} b \,d^{3}-3 a \,b^{2} c^{3}+9 a \,b^{2} c \,d^{2}-3 b^{3} c^{2} d +b^{3} d^{3}\right ) \arctan \left (\tan \left (f x +e \right )\right )}{\left (c^{2}+d^{2}\right )^{3}}}{f}\) | \(421\) |
default | \(\frac {\frac {\left (3 a^{3} c^{2} d -a^{3} d^{3}-3 a^{2} b \,c^{3}+9 a^{2} b c \,d^{2}-9 a \,b^{2} c^{2} d +3 a \,b^{2} d^{3}+b^{3} c^{3}-3 b^{3} c \,d^{2}\right ) \ln \left (c +d \tan \left (f x +e \right )\right )}{\left (c^{2}+d^{2}\right )^{3}}-\frac {a^{3} d^{3}-3 a^{2} b c \,d^{2}+3 a \,b^{2} c^{2} d -b^{3} c^{3}}{2 d^{2} \left (c^{2}+d^{2}\right ) \left (c +d \tan \left (f x +e \right )\right )^{2}}-\frac {2 a^{3} c \,d^{3}-3 a^{2} b \,c^{2} d^{2}+3 a^{2} b \,d^{4}-6 a \,b^{2} c \,d^{3}+b^{3} c^{4}+3 b^{3} c^{2} d^{2}}{\left (c^{2}+d^{2}\right )^{2} d^{2} \left (c +d \tan \left (f x +e \right )\right )}+\frac {\frac {\left (-3 a^{3} c^{2} d +a^{3} d^{3}+3 a^{2} b \,c^{3}-9 a^{2} b c \,d^{2}+9 a \,b^{2} c^{2} d -3 a \,b^{2} d^{3}-b^{3} c^{3}+3 b^{3} c \,d^{2}\right ) \ln \left (1+\tan ^{2}\left (f x +e \right )\right )}{2}+\left (a^{3} c^{3}-3 a^{3} c \,d^{2}+9 a^{2} b \,c^{2} d -3 a^{2} b \,d^{3}-3 a \,b^{2} c^{3}+9 a \,b^{2} c \,d^{2}-3 b^{3} c^{2} d +b^{3} d^{3}\right ) \arctan \left (\tan \left (f x +e \right )\right )}{\left (c^{2}+d^{2}\right )^{3}}}{f}\) | \(421\) |
norman | \(\frac {\frac {\left (a^{3} c^{3}-3 a^{3} c \,d^{2}+9 a^{2} b \,c^{2} d -3 a^{2} b \,d^{3}-3 a \,b^{2} c^{3}+9 a \,b^{2} c \,d^{2}-3 b^{3} c^{2} d +b^{3} d^{3}\right ) c^{2} x}{\left (c^{4}+2 c^{2} d^{2}+d^{4}\right ) \left (c^{2}+d^{2}\right )}+\frac {d^{2} \left (a^{3} c^{3}-3 a^{3} c \,d^{2}+9 a^{2} b \,c^{2} d -3 a^{2} b \,d^{3}-3 a \,b^{2} c^{3}+9 a \,b^{2} c \,d^{2}-3 b^{3} c^{2} d +b^{3} d^{3}\right ) x \left (\tan ^{2}\left (f x +e \right )\right )}{\left (c^{4}+2 c^{2} d^{2}+d^{4}\right ) \left (c^{2}+d^{2}\right )}-\frac {5 a^{3} c^{2} d^{3}+d^{5} a^{3}-9 a^{2} b \,c^{3} d^{2}+3 a^{2} b c \,d^{4}+3 a \,b^{2} c^{4} d -9 a \,b^{2} c^{2} d^{3}+c^{5} b^{3}+5 b^{3} c^{3} d^{2}}{2 f \,d^{2} \left (c^{4}+2 c^{2} d^{2}+d^{4}\right )}-\frac {\left (2 a^{3} c \,d^{3}-3 a^{2} b \,c^{2} d^{2}+3 a^{2} b \,d^{4}-6 a \,b^{2} c \,d^{3}+b^{3} c^{4}+3 b^{3} c^{2} d^{2}\right ) \tan \left (f x +e \right )}{f d \left (c^{4}+2 c^{2} d^{2}+d^{4}\right )}+\frac {2 d \left (a^{3} c^{3}-3 a^{3} c \,d^{2}+9 a^{2} b \,c^{2} d -3 a^{2} b \,d^{3}-3 a \,b^{2} c^{3}+9 a \,b^{2} c \,d^{2}-3 b^{3} c^{2} d +b^{3} d^{3}\right ) c x \tan \left (f x +e \right )}{\left (c^{4}+2 c^{2} d^{2}+d^{4}\right ) \left (c^{2}+d^{2}\right )}}{\left (c +d \tan \left (f x +e \right )\right )^{2}}+\frac {\left (3 a^{3} c^{2} d -a^{3} d^{3}-3 a^{2} b \,c^{3}+9 a^{2} b c \,d^{2}-9 a \,b^{2} c^{2} d +3 a \,b^{2} d^{3}+b^{3} c^{3}-3 b^{3} c \,d^{2}\right ) \ln \left (c +d \tan \left (f x +e \right )\right )}{f \left (c^{6}+3 c^{4} d^{2}+3 c^{2} d^{4}+d^{6}\right )}-\frac {\left (3 a^{3} c^{2} d -a^{3} d^{3}-3 a^{2} b \,c^{3}+9 a^{2} b c \,d^{2}-9 a \,b^{2} c^{2} d +3 a \,b^{2} d^{3}+b^{3} c^{3}-3 b^{3} c \,d^{2}\right ) \ln \left (1+\tan ^{2}\left (f x +e \right )\right )}{2 f \left (c^{6}+3 c^{4} d^{2}+3 c^{2} d^{4}+d^{6}\right )}\) | \(757\) |
risch | \(\text {Expression too large to display}\) | \(1681\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 534 vs.
\(2 (241) = 482\).
time = 0.56, size = 534, normalized size = 2.22 \begin {gather*} \frac {\frac {2 \, {\left ({\left (a^{3} - 3 \, a b^{2}\right )} c^{3} + 3 \, {\left (3 \, a^{2} b - b^{3}\right )} c^{2} d - 3 \, {\left (a^{3} - 3 \, a b^{2}\right )} c d^{2} - {\left (3 \, a^{2} b - b^{3}\right )} d^{3}\right )} {\left (f x + e\right )}}{c^{6} + 3 \, c^{4} d^{2} + 3 \, c^{2} d^{4} + d^{6}} - \frac {2 \, {\left ({\left (3 \, a^{2} b - b^{3}\right )} c^{3} - 3 \, {\left (a^{3} - 3 \, a b^{2}\right )} c^{2} d - 3 \, {\left (3 \, a^{2} b - b^{3}\right )} c d^{2} + {\left (a^{3} - 3 \, a b^{2}\right )} d^{3}\right )} \log \left (d \tan \left (f x + e\right ) + c\right )}{c^{6} + 3 \, c^{4} d^{2} + 3 \, c^{2} d^{4} + d^{6}} + \frac {{\left ({\left (3 \, a^{2} b - b^{3}\right )} c^{3} - 3 \, {\left (a^{3} - 3 \, a b^{2}\right )} c^{2} d - 3 \, {\left (3 \, a^{2} b - b^{3}\right )} c d^{2} + {\left (a^{3} - 3 \, a b^{2}\right )} d^{3}\right )} \log \left (\tan \left (f x + e\right )^{2} + 1\right )}{c^{6} + 3 \, c^{4} d^{2} + 3 \, c^{2} d^{4} + d^{6}} - \frac {b^{3} c^{5} + 3 \, a b^{2} c^{4} d + 3 \, a^{2} b c d^{4} + a^{3} d^{5} - {\left (9 \, a^{2} b - 5 \, b^{3}\right )} c^{3} d^{2} + {\left (5 \, a^{3} - 9 \, a b^{2}\right )} c^{2} d^{3} + 2 \, {\left (b^{3} c^{4} d + 3 \, a^{2} b d^{5} - 3 \, {\left (a^{2} b - b^{3}\right )} c^{2} d^{3} + 2 \, {\left (a^{3} - 3 \, a b^{2}\right )} c d^{4}\right )} \tan \left (f x + e\right )}{c^{6} d^{2} + 2 \, c^{4} d^{4} + c^{2} d^{6} + {\left (c^{4} d^{4} + 2 \, c^{2} d^{6} + d^{8}\right )} \tan \left (f x + e\right )^{2} + 2 \, {\left (c^{5} d^{3} + 2 \, c^{3} d^{5} + c d^{7}\right )} \tan \left (f x + e\right )}}{2 \, f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 870 vs.
\(2 (241) = 482\).
time = 1.27, size = 870, normalized size = 3.62 \begin {gather*} \frac {b^{3} c^{5} - 9 \, a b^{2} c^{4} d - 3 \, a^{2} b c d^{4} - a^{3} d^{5} + 5 \, {\left (3 \, a^{2} b - b^{3}\right )} c^{3} d^{2} - {\left (7 \, a^{3} - 9 \, a b^{2}\right )} c^{2} d^{3} + 2 \, {\left ({\left (a^{3} - 3 \, a b^{2}\right )} c^{5} + 3 \, {\left (3 \, a^{2} b - b^{3}\right )} c^{4} d - 3 \, {\left (a^{3} - 3 \, a b^{2}\right )} c^{3} d^{2} - {\left (3 \, a^{2} b - b^{3}\right )} c^{2} d^{3}\right )} f x + {\left (b^{3} c^{5} + 3 \, a b^{2} c^{4} d + 9 \, a^{2} b c d^{4} - a^{3} d^{5} - {\left (9 \, a^{2} b - 7 \, b^{3}\right )} c^{3} d^{2} + 5 \, {\left (a^{3} - 3 \, a b^{2}\right )} c^{2} d^{3} + 2 \, {\left ({\left (a^{3} - 3 \, a b^{2}\right )} c^{3} d^{2} + 3 \, {\left (3 \, a^{2} b - b^{3}\right )} c^{2} d^{3} - 3 \, {\left (a^{3} - 3 \, a b^{2}\right )} c d^{4} - {\left (3 \, a^{2} b - b^{3}\right )} d^{5}\right )} f x\right )} \tan \left (f x + e\right )^{2} - {\left ({\left (3 \, a^{2} b - b^{3}\right )} c^{5} - 3 \, {\left (a^{3} - 3 \, a b^{2}\right )} c^{4} d - 3 \, {\left (3 \, a^{2} b - b^{3}\right )} c^{3} d^{2} + {\left (a^{3} - 3 \, a b^{2}\right )} c^{2} d^{3} + {\left ({\left (3 \, a^{2} b - b^{3}\right )} c^{3} d^{2} - 3 \, {\left (a^{3} - 3 \, a b^{2}\right )} c^{2} d^{3} - 3 \, {\left (3 \, a^{2} b - b^{3}\right )} c d^{4} + {\left (a^{3} - 3 \, a b^{2}\right )} d^{5}\right )} \tan \left (f x + e\right )^{2} + 2 \, {\left ({\left (3 \, a^{2} b - b^{3}\right )} c^{4} d - 3 \, {\left (a^{3} - 3 \, a b^{2}\right )} c^{3} d^{2} - 3 \, {\left (3 \, a^{2} b - b^{3}\right )} c^{2} d^{3} + {\left (a^{3} - 3 \, a b^{2}\right )} c d^{4}\right )} \tan \left (f x + e\right )\right )} \log \left (\frac {d^{2} \tan \left (f x + e\right )^{2} + 2 \, c d \tan \left (f x + e\right ) + c^{2}}{\tan \left (f x + e\right )^{2} + 1}\right ) + 2 \, {\left (3 \, a b^{2} c^{5} - 3 \, a^{2} b d^{5} - 3 \, {\left (2 \, a^{2} b - b^{3}\right )} c^{4} d + 3 \, {\left (a^{3} - 3 \, a b^{2}\right )} c^{3} d^{2} + 3 \, {\left (3 \, a^{2} b - b^{3}\right )} c^{2} d^{3} - 3 \, {\left (a^{3} - 2 \, a b^{2}\right )} c d^{4} + 2 \, {\left ({\left (a^{3} - 3 \, a b^{2}\right )} c^{4} d + 3 \, {\left (3 \, a^{2} b - b^{3}\right )} c^{3} d^{2} - 3 \, {\left (a^{3} - 3 \, a b^{2}\right )} c^{2} d^{3} - {\left (3 \, a^{2} b - b^{3}\right )} c d^{4}\right )} f x\right )} \tan \left (f x + e\right )}{2 \, {\left ({\left (c^{6} d^{2} + 3 \, c^{4} d^{4} + 3 \, c^{2} d^{6} + d^{8}\right )} f \tan \left (f x + e\right )^{2} + 2 \, {\left (c^{7} d + 3 \, c^{5} d^{3} + 3 \, c^{3} d^{5} + c d^{7}\right )} f \tan \left (f x + e\right ) + {\left (c^{8} + 3 \, c^{6} d^{2} + 3 \, c^{4} d^{4} + c^{2} d^{6}\right )} f\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: AttributeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 830 vs.
\(2 (241) = 482\).
time = 0.95, size = 830, normalized size = 3.46 \begin {gather*} \frac {\frac {2 \, {\left (a^{3} c^{3} - 3 \, a b^{2} c^{3} + 9 \, a^{2} b c^{2} d - 3 \, b^{3} c^{2} d - 3 \, a^{3} c d^{2} + 9 \, a b^{2} c d^{2} - 3 \, a^{2} b d^{3} + b^{3} d^{3}\right )} {\left (f x + e\right )}}{c^{6} + 3 \, c^{4} d^{2} + 3 \, c^{2} d^{4} + d^{6}} + \frac {{\left (3 \, a^{2} b c^{3} - b^{3} c^{3} - 3 \, a^{3} c^{2} d + 9 \, a b^{2} c^{2} d - 9 \, a^{2} b c d^{2} + 3 \, b^{3} c d^{2} + a^{3} d^{3} - 3 \, a b^{2} d^{3}\right )} \log \left (\tan \left (f x + e\right )^{2} + 1\right )}{c^{6} + 3 \, c^{4} d^{2} + 3 \, c^{2} d^{4} + d^{6}} - \frac {2 \, {\left (3 \, a^{2} b c^{3} d - b^{3} c^{3} d - 3 \, a^{3} c^{2} d^{2} + 9 \, a b^{2} c^{2} d^{2} - 9 \, a^{2} b c d^{3} + 3 \, b^{3} c d^{3} + a^{3} d^{4} - 3 \, a b^{2} d^{4}\right )} \log \left ({\left | d \tan \left (f x + e\right ) + c \right |}\right )}{c^{6} d + 3 \, c^{4} d^{3} + 3 \, c^{2} d^{5} + d^{7}} + \frac {9 \, a^{2} b c^{3} d^{4} \tan \left (f x + e\right )^{2} - 3 \, b^{3} c^{3} d^{4} \tan \left (f x + e\right )^{2} - 9 \, a^{3} c^{2} d^{5} \tan \left (f x + e\right )^{2} + 27 \, a b^{2} c^{2} d^{5} \tan \left (f x + e\right )^{2} - 27 \, a^{2} b c d^{6} \tan \left (f x + e\right )^{2} + 9 \, b^{3} c d^{6} \tan \left (f x + e\right )^{2} + 3 \, a^{3} d^{7} \tan \left (f x + e\right )^{2} - 9 \, a b^{2} d^{7} \tan \left (f x + e\right )^{2} - 2 \, b^{3} c^{6} d \tan \left (f x + e\right ) + 24 \, a^{2} b c^{4} d^{3} \tan \left (f x + e\right ) - 14 \, b^{3} c^{4} d^{3} \tan \left (f x + e\right ) - 22 \, a^{3} c^{3} d^{4} \tan \left (f x + e\right ) + 66 \, a b^{2} c^{3} d^{4} \tan \left (f x + e\right ) - 54 \, a^{2} b c^{2} d^{5} \tan \left (f x + e\right ) + 12 \, b^{3} c^{2} d^{5} \tan \left (f x + e\right ) + 2 \, a^{3} c d^{6} \tan \left (f x + e\right ) - 6 \, a b^{2} c d^{6} \tan \left (f x + e\right ) - 6 \, a^{2} b d^{7} \tan \left (f x + e\right ) - b^{3} c^{7} - 3 \, a b^{2} c^{6} d + 18 \, a^{2} b c^{5} d^{2} - 9 \, b^{3} c^{5} d^{2} - 14 \, a^{3} c^{4} d^{3} + 33 \, a b^{2} c^{4} d^{3} - 21 \, a^{2} b c^{3} d^{4} + 4 \, b^{3} c^{3} d^{4} - 3 \, a^{3} c^{2} d^{5} - 3 \, a^{2} b c d^{6} - a^{3} d^{7}}{{\left (c^{6} d^{2} + 3 \, c^{4} d^{4} + 3 \, c^{2} d^{6} + d^{8}\right )} {\left (d \tan \left (f x + e\right ) + c\right )}^{2}}}{2 \, f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 8.29, size = 466, normalized size = 1.94 \begin {gather*} -\frac {\frac {5\,a^3\,c^2\,d^3+a^3\,d^5-9\,a^2\,b\,c^3\,d^2+3\,a^2\,b\,c\,d^4+3\,a\,b^2\,c^4\,d-9\,a\,b^2\,c^2\,d^3+b^3\,c^5+5\,b^3\,c^3\,d^2}{2\,d^2\,\left (c^4+2\,c^2\,d^2+d^4\right )}+\frac {\mathrm {tan}\left (e+f\,x\right )\,\left (2\,a^3\,c\,d^3-3\,a^2\,b\,c^2\,d^2+3\,a^2\,b\,d^4-6\,a\,b^2\,c\,d^3+b^3\,c^4+3\,b^3\,c^2\,d^2\right )}{d\,\left (c^4+2\,c^2\,d^2+d^4\right )}}{f\,\left (c^2+2\,c\,d\,\mathrm {tan}\left (e+f\,x\right )+d^2\,{\mathrm {tan}\left (e+f\,x\right )}^2\right )}-\frac {\ln \left (\mathrm {tan}\left (e+f\,x\right )-\mathrm {i}\right )\,\left (-a^3\,1{}\mathrm {i}+3\,a^2\,b+a\,b^2\,3{}\mathrm {i}-b^3\right )}{2\,f\,\left (-c^3-c^2\,d\,3{}\mathrm {i}+3\,c\,d^2+d^3\,1{}\mathrm {i}\right )}-\frac {\ln \left (c+d\,\mathrm {tan}\left (e+f\,x\right )\right )\,\left (\left (3\,a^2\,b-b^3\right )\,c^3+\left (9\,a\,b^2-3\,a^3\right )\,c^2\,d+\left (3\,b^3-9\,a^2\,b\right )\,c\,d^2+\left (a^3-3\,a\,b^2\right )\,d^3\right )}{f\,\left (c^6+3\,c^4\,d^2+3\,c^2\,d^4+d^6\right )}-\frac {\ln \left (\mathrm {tan}\left (e+f\,x\right )+1{}\mathrm {i}\right )\,\left (-a^3+a^2\,b\,3{}\mathrm {i}+3\,a\,b^2-b^3\,1{}\mathrm {i}\right )}{2\,f\,\left (-c^3\,1{}\mathrm {i}-3\,c^2\,d+c\,d^2\,3{}\mathrm {i}+d^3\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________